<?php

/**
 * @BelongProject: flami_mangers
 * @Author: Zwc
 * @CreateTime: 2025-11-16 14:17:53
 * @Description: TODO
 */

namespace App\Api;

use App\Domain\VipExplainDomain;
use PhalApi\Api;

class VipExplain extends Api
{
    public function getRules()
    {
        return [
            'getVipExplain' => [
                'langId' => ['name' => 'langId', 'type' => 'int', 'desc' => '语言ID'],
                'token' => ['name' => 'token', 'type' => 'string', 'desc' => '用户Token']
            ]
        ];
    }

    /**
     * 获取会员权益
     * @return array
     */
    public function getVipExplain(): array
    {
        return [
            'code' => 0,
            'msg' => 'success',
            'info' => VipExplainDomain::getVipExplainByLangId($this->langId)
        ];
    }

}